﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HomeProfileLivingProcessEdit.ascx.cs"
    Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.OpenPersonality.HomeProfileLivingProcessEdit" %>
<script type="text/javascript" src="http://cdn.openweb.vn/Resources/Scripts/JavascriptErrorShow.js"></script>
<owc:OwDetailsView ID="OpenHomeProfileLivingProcessDV" runat="server" AutoGenerateRows="False"
    DataKeyNames="OpenHomeProfileLivingProcessID" DataSourceID="OwOpenHomeProfileLivingProcessOds"
    OwNotificationID="" EnableModelValidation="True">
    <Fields>
        <asp:TemplateField>
            <InsertItemTemplate>
                <fieldset>
                    <legend>
                        <%--<asp:Localize ID="Localize2" Text="<%$ OwR:GeneralInfo %>" runat="server"></asp:Localize>--%>
                        <owc:OwR ID="GeneralOwR" runat="Server" OwText="GeneralInfo"></owc:OwR>
                    </legend>
                    <div>
                        <owac:OwDetailCommonGroup ID="OwDetailCommonGroup2" runat="server" OwBindContinentLocalityValue='<%# Bind("ContinentID") %>'
                            OwBindCountryLocalityValue='<%# Bind("CountryID") %>' OwBindProvinceLocalityValue='<%# Bind("ProvinceID") %>'
                            OwBindLanguageValue='<%# Bind("LanguageCode") %>' OwBindDistrictLocalityValue='<%# Bind("DistrictID") %>'
                            OwBindWardLocalityValue='<%# Bind("WardID") %>' />
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <%--<asp:Localize ID="Localize7" Text="<%$ OwR:InfoLabel %>" runat="server"></asp:Localize>--%>
                        <owc:OwR ID="InfoOwR" runat="Server" OwText="InfoLabel"></owc:OwR>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="Localize8" Text="<%$ OwR:TitleLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="NameOwR" runat="Server" OwText="NameLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtName" runat="server" Width="680px"
                                        OwUsedForEdit="false" Text='<%# Bind("Name") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="txtCompany" Text="<%$ OwR:CompanyLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="HomeProfileDetailOwR" runat="Server" OwText="HomeProfileDetailLabel"
                                        OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>'  SkinID="owCombobox" ID="OpenHomeProfileDetailCbb" runat="server"
                                        DataSourceID="OwOpenHomeProfileDetailOds" DataTextField="Title" DataValueField="OpenHomeProfileDetailID"
                                        AppendDataBoundItems="True" SelectedValue='<%# Bind("OpenHomeProfileDetailID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwOpenHomeProfileDetailOds" runat="server" OldValuesParameterFormatString="original_{0}"
                                        OwBLLClassName="" OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileDetailsBLL">
                                        <SelectParameters>
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="openHomeProfileID" Type="Int64" />
                                            <asp:Parameter Name="firstNameID" Type="Int64" />
                                            <asp:Parameter Name="lastNameID" Type="Int64" />
                                            <asp:Parameter Name="isDefault" Type="Boolean" />
                                            <asp:Parameter Name="twelveYearCycleOfAnimalID" Type="Int32" />
                                            <asp:Parameter Name="fiveElementID" Type="Int32" />
                                            <asp:Parameter Name="hometownContinentID" Type="Int64" />
                                            <asp:Parameter Name="hometownCountryID" Type="Int64" />
                                            <asp:Parameter Name="hometownProvinceID" Type="Int64" />
                                            <asp:Parameter Name="hometownDistrictID" Type="Int64" />
                                            <asp:Parameter Name="hometownWardID" Type="Int64" />
                                            <asp:Parameter Name="zodiacID" Type="Int64" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%--<asp:Localize ID="Localize11" Text="<%$ OwR:ContentLabel %>" runat="server"></asp:Localize>:--%>
                                    <owc:OwR ID="DescriptionOwR" runat="Server" OwText="DescriptionLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwEditor SkinID="OwEditorBrief" ID="DetailEdt" runat="server" OwStoragePlace="Common"
                                        OwUsedTarget="Common" Style="position: relative; top: 0px; left: 0px;" Content='<%# Bind("Description") %>'>
                                    </owc:OwEditor>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>
                        <owc:OwR ID="ExtInfoOwR" runat="server" OwText="ExtInfo" ></owc:OwR>
                    </legend>
                    <table width="100%">
                        <tr>
                            <td>
                                <fieldset class="fsStandard">
                                    <table>
                                        <tr>
                                            <td class="leftcolumn">
                                                <%--<asp:Localize ID="Localize9" Text="<%$ OwR:JobTitleLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                                <owc:OwR ID="DateTimeStartOwR" runat="server" OwText="DateTimeStartLabel" OwSuffix=":"></owc:OwR>
                                            </td>
                                            <td>
                                                <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                    ID="dtDateTimeStart" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("DateTimeStart") %>'
                                                    MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow: DateTime.Now %>'
                                                    OwUsedForEdit="False">
                                                    <TimeView CellSpacing="-1">
                                                    </TimeView>
                                                    <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                    </Calendar>
                                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                </owc:OwDateTimePicker>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="leftcolumn">
                                                <%--<asp:Localize ID="Localize11" Text="<%$ OwR:ContentLabel %>" runat="server"></asp:Localize>:--%>
                                                <owc:OwR ID="DateTimeEndOwR" runat="server" OwText="DateTimeEndLabel" OwSuffix=":"></owc:OwR>
                                            </td>
                                            <td>
                                                <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                    ID="dtDateTimeEnd" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("DateTimeEnd") %>'
                                                    MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow:OwPC.PCEx.DateTimeMax2 %>'
                                                    OwUsedForEdit="False">
                                                    <TimeView CellSpacing="-1">
                                                    </TimeView>
                                                    <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                    <Calendar ClientEvents-OnDateSelected="showNotification" UseRowHeadersAsSelectors="False"
                                                        UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                    </Calendar>
                                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                </owc:OwDateTimePicker>
                                                <asp:CompareValidator ID="CompareValidator6" runat="server" ControlToCompare="dtDateTimeStart"
                                                    ControlToValidate="dtDateTimeEnd" ErrorMessage="<%$ OwR:EnableEndGreaterThanEnableBegin %>"
                                                    Operator="GreaterThan" ValidationGroup="VDGroup"></asp:CompareValidator>
                                            </td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </td>
                            <td>
                                <fieldset class="fsStandard">
                                    <table>
                                        <tr>
                                            <td class="tdinFs leftcolumn">
                                                <owc:OwR ID="IsHomeTownOwR" runat="server" OwText="IsHomeTownLabel" OwPrefix=":"></owc:OwR>
                                            </td>
                                            <td>
                                                <owc:OwCheckBox SkinID="OwCheckBox" ID="IsHomeTownCbb" runat="server" Checked='<%# Bind("IsHomeTown") %>' />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdinFs leftcolumn">
                                                <owc:OwR ID="IsDeletedOwR" runat="server" OwText="IsDeletedLabel" OwPrefix=":"></owc:OwR>
                                            </td>
                                            <td>
                                                <owc:OwCheckBox SkinID="OwCheckBox" ID="IsDeletedCbb" runat="server" Checked='<%# Bind("IsDeleted") %>' />
                                            </td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <br />
                <br />
                <br />
            </InsertItemTemplate>
            <EditItemTemplate>
                <fieldset>
                    <legend>
                        <%--<asp:Localize ID="Localize2" Text="<%$ OwR:GeneralInfo %>" runat="server"></asp:Localize>--%>
                        <owc:OwR ID="GeneralOwR" runat="Server" OwText="GeneralInfo"></owc:OwR>
                    </legend>
                    <div>
                        <owac:OwDetailCommonGroup ID="OwDetailCommonGroup2" runat="server" OwBindContinentLocalityValue='<%# Bind("ContinentID") %>'
                            OwBindCountryLocalityValue='<%# Bind("CountryID") %>' OwBindProvinceLocalityValue='<%# Bind("ProvinceID") %>'
                            OwBindLanguageValue='<%# Bind("LanguageCode") %>' OwBindDistrictLocalityValue='<%# Bind("DistrictID") %>'
                            OwBindWardLocalityValue='<%# Bind("WardID") %>' />
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <%--<asp:Localize ID="Localize7" Text="<%$ OwR:InfoLabel %>" runat="server"></asp:Localize>--%>
                        <owc:OwR ID="InfoOwR" runat="Server" OwText="InfoLabel"></owc:OwR>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="Localize8" Text="<%$ OwR:TitleLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="NameOwR" runat="Server" OwText="NameLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtName" runat="server" Width="680px" 
                                        OwUsedForEdit="false" Text='<%# Bind("Name") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <%--<asp:Localize ID="txtCompany" Text="<%$ OwR:CompanyLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                    <owc:OwR ID="HomeProfileDetailOwR" runat="Server" OwText="HomeProfileDetailLabel"
                                        OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwComboBox EmptyMessage='<%$ OwR:PleaseSelect%>'  SkinID="owCombobox" ID="OpenHomeProfileDetailCbb" runat="server"
                                        DataSourceID="OwOpenHomeProfileDetailOds" DataTextField="Title" DataValueField="OpenHomeProfileDetailID"
                                        AppendDataBoundItems="True" SelectedValue='<%# Bind("OpenHomeProfileDetailID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwOpenHomeProfileDetailOds" runat="server" OldValuesParameterFormatString="original_{0}"
                                        OwBLLClassName="" OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileDetailsBLL">
                                        <SelectParameters>
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="openHomeProfileID" Type="Int64" />
                                            <asp:Parameter Name="firstNameID" Type="Int64" />
                                            <asp:Parameter Name="lastNameID" Type="Int64" />
                                            <asp:Parameter Name="isDefault" Type="Boolean" />
                                            <asp:Parameter Name="twelveYearCycleOfAnimalID" Type="Int32" />
                                            <asp:Parameter Name="fiveElementID" Type="Int32" />
                                            <asp:Parameter Name="hometownContinentID" Type="Int64" />
                                            <asp:Parameter Name="hometownCountryID" Type="Int64" />
                                            <asp:Parameter Name="hometownProvinceID" Type="Int64" />
                                            <asp:Parameter Name="hometownDistrictID" Type="Int64" />
                                            <asp:Parameter Name="hometownWardID" Type="Int64" />
                                            <asp:Parameter Name="zodiacID" Type="Int64" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%--<asp:Localize ID="Localize11" Text="<%$ OwR:ContentLabel %>" runat="server"></asp:Localize>:--%>
                                    <owc:OwR ID="DescriptionOwR" runat="Server" OwText="DescriptionLabel" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwEditor SkinID="OwEditorBrief" ID="DetailEdt" runat="server" OwStoragePlace="Common"
                                        OwUsedTarget="Common" Style="position: relative; top: 0px; left: 0px;" Content='<%# Bind("Description") %>'>
                                    </owc:OwEditor>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend>
                        <owc:OwR ID="ExtInfoOwR" runat="server" OwText="ExtInfo" ></owc:OwR>
                    </legend>
                    <table width="100%">
                        <tr>
                            <td>
                                <fieldset class="fsStandard">
                                    <table>
                                        <tr>
                                            <td class="leftcolumn">
                                                <%--<asp:Localize ID="Localize9" Text="<%$ OwR:JobTitleLabel %>" runat="server"></asp:Localize>:&nbsp;--%>
                                                <owc:OwR ID="DateTimeStartOwR" runat="server" OwText="DateTimeStartLabel" OwSuffix=":"></owc:OwR>
                                            </td>
                                            <td>
                                                <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                    ID="dtDateTimeStart" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("DateTimeStart") %>'
                                                    MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow: DateTime.Now %>'
                                                    OwUsedForEdit="False">
                                                    <TimeView CellSpacing="-1">
                                                    </TimeView>
                                                    <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                    </Calendar>
                                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                </owc:OwDateTimePicker>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="leftcolumn">
                                                <%--<asp:Localize ID="Localize11" Text="<%$ OwR:ContentLabel %>" runat="server"></asp:Localize>:--%>
                                                <owc:OwR ID="DateTimeEndOwR" runat="server" OwText="DateTimeEndLabel" OwSuffix=":"></owc:OwR>
                                            </td>
                                            <td>
                                                <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                    ID="dtDateTimeEnd" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("DateTimeEnd") %>'
                                                    MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow:OwPC.PCEx.DateTimeMax2 %>'
                                                    OwUsedForEdit="False">
                                                    <TimeView CellSpacing="-1">
                                                    </TimeView>
                                                    <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                    <Calendar ClientEvents-OnDateSelected="showNotification" UseRowHeadersAsSelectors="False"
                                                        UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                    </Calendar>
                                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                </owc:OwDateTimePicker>
                                                <asp:CompareValidator ID="CompareValidator6" runat="server" ControlToCompare="dtDateTimeStart"
                                                    ControlToValidate="dtDateTimeEnd" ErrorMessage="<%$ OwR:EnableEndGreaterThanEnableBegin %>"
                                                    Operator="GreaterThan" ValidationGroup="VDGroup"></asp:CompareValidator>
                                            </td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </td>
                            <td>
                                <fieldset class="fsStandard">
                                    <table>
                                        <tr>
                                            <td class="tdinFs leftcolumn">
                                                <owc:OwR ID="IsHomeTownOwR" runat="server" OwText="IsHomeTownLabel" OwPrefix=":"></owc:OwR>
                                            </td>
                                            <td>
                                                <owc:OwCheckBox SkinID="OwCheckBox" ID="IsHomeTownCbb" runat="server" Checked='<%# Bind("IsHomeTown") %>' />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tdinFs leftcolumn">
                                                <owc:OwR ID="IsDeletedOwR" runat="server" OwText="IsDeletedLabel" OwPrefix=":"></owc:OwR>
                                            </td>
                                            <td>
                                                <owc:OwCheckBox SkinID="OwCheckBox" ID="IsDeletedCbb" runat="server" Checked='<%# Bind("IsDeleted") %>' />
                                            </td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </td>
                        </tr>
                    </table>
                </fieldset>
                <br />
                <br />
                <br />
            </EditItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="EditUpdateThenCloseButton" runat="server" CommandName="Update"
                        Text='<%$OwR:Update %>' OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;
                    <owc:OwConfirmButton ID="EditDeleteButton" runat="server" CausesValidation="True"
                        CommandName="Delete" Text="<%$OwR:Delete %>" SkinID="OwConfirmButton">
                    </owc:OwConfirmButton>
                    &nbsp;<owc:OwButton ID="EditCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </EditItemTemplate>
            <InsertItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="InsertInsertButton" runat="server" CommandName="Insert" Text="<%$OwR:Insert %>"
                        OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;<owc:OwButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </InsertItemTemplate>
        </asp:TemplateField>
    </Fields>
</owc:OwDetailsView>
<owc:OwObjectDataSource ID="OwOpenHomeProfileLivingProcessOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwOpenHomeProfileLivingProcessEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetEntity" TypeName="Micronet.OpenWeb.Com.BLL.OwOpenHomeProfileLivingProcessBLL"
    UpdateMethod="OwUpdate">
    <SelectParameters>
        <asp:QueryStringParameter Name="OpenHomeProfileLivingProcessID" QueryStringField='<%$ Ow:OwConstants.QueryString.ID %>' />
    </SelectParameters>
</owc:OwObjectDataSource>
